import PageTools from './PageTools'
import UploadExcel from './UploadExcel'
import UploadImg from './UploadImg'

// 定义数据:里边放入全局公共组件
const components = [PageTools, UploadExcel, UploadImg]

export default {
  install (Vue) {
    // 注册全局组件
    // Vue.component('PageTools', PageTools)
    // Vue.components('UploadExcel', UploadExcel)
    components.forEach(cp => {
      // cp.name 作为批量注册组件的标签名
      Vue.component(cp.name, cp)
    })
  }
}
